<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div class="cir"></div>
    <style>
      .cir {
        height: 100px;
        width: 100px;
        margin: 0 auto;
        animation: 2s infinite rotate;
        background-color: aqua;
        transform-style: preserve-3d;
        perspective: 1500px;
      }
      @keyframes rotate {
        form {
          transform: rotateY(0);
        }
        to {
          transform: rotateY(360deg);
        }
      }
      .cir:hover {
        animation-play-state: paused;
      }
    </style>
  </body>
</html>
